package com.bootdo.repertory.service.impl;

import com.bootdo.repertory.dao.AllocationDao;
import com.bootdo.repertory.domain.AllocationDO;
import com.bootdo.repertory.service.AllocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class AllocationServiceImpl implements AllocationService {
	@Autowired
	private AllocationDao allocationDao;
	
	@Override
	public AllocationDO get(Integer id){
		return allocationDao.get(id);
	}
	
	@Override
	public List<AllocationDO> list(Map<String, Object> map){
		return allocationDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return allocationDao.count(map);
	}
	
	@Override
	public int save(AllocationDO allocation){
		return allocationDao.save(allocation);
	}
	
	@Override
	public int update(AllocationDO allocation){
		return allocationDao.update(allocation);
	}
	
	@Override
	public int remove(Integer id){
		return allocationDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return allocationDao.batchRemove(ids);
	}

	@Override
	public AllocationDO getInfo(AllocationDO allocationDO) {
		return allocationDao.getInfo(allocationDO);
	}

}
